import request from '@/utils/request'

import { AxiosPromise } from 'axios'

// 查询日志列表
export function devLogList(query: any): AxiosPromise<any[]> {
  return request({
    url: '/monitor/devlog/list',
    method: 'post',
    data: query,
  })
}

// 删除操作日志
export function devLogDelete(operIds: Array<string | number>) {
  return request({
    url: '/monitor/devlog/delete',
    method: 'post',
    data: operIds,
  })
}

// 清空操作日志
export function devLogClear() {
  return request({
    url: '/monitor/devlog/clean',
    method: 'post',
  })
}
